package com.mm.learn.login;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Service;

/**
 * @author wdx
 * @date 2021年09月23日 9:49
 * 具体策略 账号密码登陆
 */
@Service
public class PasswordServiceImpl extends AbstractLogin {



    @Autowired
    public PasswordServiceImpl(UserDao userDao) {
        super(userDao);
    }

    @Override
    public String doLogin(String password) {
        System.out.println("password");
        return "password";
    }


    @Override
    public Integer id() {
        return 1;
    }
}
